﻿using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using Susha.Models;
using Susha.Models.Helpers;
using Susha.Models.Pages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Susha.Areas.Default.Controllers
{
    public class MenuController : Controller
    {
        //
        // GET: /Menu/

        public ActionResult Index()
        {
            //CommonTools.ResetDB(true);

            MenuPage page = new MenuPage();
            page.Categories = CategoryRepository.GetAllCategories();

            return View(page);
        }
    }
}